package com.esender.api.util;

import java.util.regex.Pattern;

/**
 * 校验手机号格式得合法性
 */
public class PhoneFormatCheckUtil {
    private static final Pattern MOBILE_PATTERN = Pattern.compile("^1[3456789]\\d{9}$");
    public static boolean checkMobile(String mobile) {
        return MOBILE_PATTERN.matcher(mobile).matches();
    }
}
